package com.david.service.hystrixs;


import com.david.service.feign.client.OrderClient;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author ：David
 * @weibo ：http://weibo.com/mcxiaobing
 * @github: https://github.com/QQ986945193
 */
@Slf4j
@Component
public class OrderClientFallBack implements OrderClient {


    @Override
    public String get() throws Exception {
        return "";
    }

    @Override
    public String ad()  {
        log.error("ad exception...");
        return "String";
    }
}
